<?php
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t("UserModule.user", "Change password");
$this->breadcrumbs = array(
    Yii::t("UserModule.user", "Profile") => array('/user/myprofile'),
    Yii::t("UserModule.user", "Change password"),
);
?>
<section>
    <div class="container">
        <div class="row">
            <div class="span12"> 
                <ul class="breadcrumb">
                    <li class="previous"><a href="<?php echo SITE_URL; ?>">Home</a> /</li>
                    <li><a href="javascript:void(0)">Change Password</a></li>
                </ul>
                <?php if (Yii::app()->user->hasFlash('recoveryMessage')): ?>
                    <div class="padding20px addmarginB30 whiteBg greenBor">
                        <div class="success">
                            <?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>
                        </div></div>
                <?php else: ?>
                    <div class="userElements">
                        <h3 class="addmarginB20"></h3>
                        <div class="common">
                            <div class="whiteBg blueBor padding20px">
                                <h5 class="fnt-size20"><?php echo Yii::t("UserModule.user", 'CHANGE PASSWORD'); ?></h5>
                            </div>
                        </div>
                        <div class="common whiteBg greenBor">
                            <div class="lg-col">
                                <?php echo CHtml::beginForm(); ?>
                                <p class="note"><?php echo Yii::t("UserModule.user", 'Fields with <span class="required">*</span> are required.'); ?></p>
                                <div class="errorMessage">
                                    <?php echo CHtml::errorSummary($form); ?>
                                </div>
                                <fieldset>
                                    <div class="common">
                                        <div class="col col1">
                                            <label>Password<span class="required">*</span></label>
                                            <?php echo CHtml::activePasswordField($form, 'password', array('class' => 'field')); ?>
                                        </div>

                                        <div class="clear"></div>
                                    </div>

                                    <div class="common">
                                        <div class="col col1">
                                            <label>Retype Password <span class="required">*</span></label>
                                            <?php echo CHtml::activePasswordField($form, 'verifyPassword', array('class' => 'field')); ?>
                                        </div>
                                        <div class="clear"></div>
                                    </div>

                                    <?php echo CHtml::submitButton(Yii::t("UserModule.user", "Save"), array('class' => 'btn twoBtn')); ?>
                                </fieldset>

                                <?php echo CHtml::endForm(); ?>
                            </div>     

                        </div>
                    </div><?php endif; ?>
            </div></div></div></section>    